
import request from '../../utils/request'

//待接收调拨查询
export  function getUnreceiveTransferList(saleOrganizationID:string,shopID:string) {
  return request({
    url: '/sale/ShopAllocation/allocateListToBeReceivedCs',
    method: 'get',
    params:{saleOrganizationID,shopID}
  })
}

//调出查询 这里默认查100条，之后本地分页
// Integer saleOrganizationID, Integer shopID, Integer enterShopID,String goodsName , String beginTime, String endTime,Integer size,Integer current
export  function getOutTransferList(saleOrganizationID:string,shopID:string,enterShopID:string,goodsName:string,beginTime:string,endTime:string,size:number = 100) {
  return request({
    url: '/sale/ShopAllocation/allocateListOutCs',
    method: 'get',
    params:{saleOrganizationID,shopID,enterShopID,goodsName,beginTime,endTime,size}
  })
}

//调入查询 这里默认查100条，之后本地分页
export  function getInTransferList(saleOrganizationID:string,shopID:string,outShopID:string,goodsName:string,beginTime:string,endTime:string,size:number = 100) {
  return request({
    url: '/sale/ShopAllocation/allocateListEnterCs',
    method: 'get', 
    params:{saleOrganizationID,shopID,outShopID,goodsName,beginTime,endTime,size}
  })
}



